Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

634374 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/40 - Gradient Generator

font/ cody/swapnilsparsh/30DaysOfJavaScript/40 - Gradient Generator/font/
1 Items
  • sans.ttf
  • assests/ cody/swapnilsparsh/30DaysOfJavaScript/40 - Gradient Generator/assests/
    1 Items
  • favicon.png
  • style.css cody/swapnilsparsh/30DaysOfJavaScript/40 - Gradient Generator/style.css
    107 Views
    0 Comments
    * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "sans";
    }

    @font-face {
    index.html cody/swapnilsparsh/30DaysOfJavaScript/40 - Gradient Generator/index.html
    322 Views
    0 Comments
    <!DOCTYPE html>
    <html lang="en">

    <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="shortcut icon" href="assests/favicon.png" type="image/x-icon" />
    script.js cody/swapnilsparsh/30DaysOfJavaScript/40 - Gradient Generator/script.js
    131 Views
    0 Comments
    let colorOne = document.getElementById('color_one');
    let colorTwo = document.getElementById('color_two');
    let currentdir = "to top";
    let outputcode = document.getElementById('code');

    function setdirection(value, _this) {
    let direction = document.querySelectorAll('.buttons button');
    direction.forEach(e => {